import React from 'react';
import ReactDom from 'react-dom';
import { Provider } from 'react-redux';
import { ConfigProvider } from '@teamix/ui';
import 'components/common/index.scss';
import 'components/common/scroll.scss';
import createStore from './store/index';
import reducers from './reducers/index';
import Root from './containers/root';
import './index.scss';

const store = createStore(reducers);

ReactDom.render(
  <Provider store={store}>
    <ConfigProvider prefix="yx-">
      <Root />
    </ConfigProvider>
  </Provider>,
  document.getElementById('container'),
);
